import Home from '@/auth/pages/Home'
export default {
  path: '/measure-plan',
  name: 'measure-plan',
  meta: {
    icon: 'logo-chrome',
    title: '管控方案'
  },
  component: Home,
  children: [
    {
      path: 'management-and-measures',
      name: 'management-and-measures',
      meta: {
        title: '管控措施',
        icon: 'logo-chrome'
      },
      component: () => import('@/views/MeasurePlan/ManagementAndMeasures.vue')
    },
    {//方案详情
      path: 'management-and-measures/:type/:status/:id/:name',
      name: 'management-and-measures-details',
      meta: {
        title: route => `${route.params.name}`,
        notAlive: true
      },
      component: () => import('@/views/MeasurePlan/ManagementAndMeasuresDetail.vue')
    },
    {//方案审核
      path: 'management-and-measures-examine/:type/:status/:id/:name',
      name: 'management-and-measures-examine',
      meta: {
        title: route => `${route.params.name}`,
        notAlive: true
      },
      component: () => import('@/views/MeasurePlan/examine.vue')
    },
    {//方案签发
      path: 'management-and-measures-issue/:type/:status/:id/:name',
      name: 'management-and-measures-issue',
      meta: {
        title: route => `${route.params.name}`,
        notAlive: true
      },
      component: () => import('@/views/MeasurePlan/issue.vue')
    },
    {//审核人选择
      path: 'deploy-person/:type/:name',
      name: 'deploy-person',
      meta: {
        title: route => `${route.params.name}`,
      },
      component: () => import('@/views/MeasurePlan/PersonDeploy.vue')
    },
    {//方案制定
      path: 'make-measures-add/:type/:id/:level/:name',
      name: 'make-measures-add',
      meta: {
        title: route => `${route.params.name}`,
      },
      component: () => import('@/views/MeasurePlan/add.vue')
    },
    {//方案修订
      path: 'make-measures-edit/:type/:id/:level/:name',
      name: 'make-measures-edit',
      meta: {
        title: route => `${route.params.name}`,
      },
      component: () => import('@/views/MeasurePlan/edit.vue')
    },
    {//方案添加
      path: 'add-measures/:level/:id/:name',
      name: 'add-measures',
      meta: {
        title: route => `${route.params.name}`,
      },
      component: () => import('@/views/MeasurePlan/addmeasures.vue')
    },
    {//方案修改
      path: 'edit-measures/:level/:id/:name',
      name: 'edit-measures',
      meta: {
        title: route => `${route.params.name}`,
      },
      component: () => import('@/views/MeasurePlan/editmeasures.vue')
    },
  ]
}
